package cn.iocoder.an.module.business.controller.admin.storemanage.vo;

import cn.idev.excel.annotation.ExcelProperty;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotEmpty;
import jakarta.validation.constraints.NotNull;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.time.LocalDate;

@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@Accessors(chain = false) // 设置 chain = false，避免导入有问题
public class StoreManageImportVo {

    @Schema(description = "客户账号", requiredMode = Schema.RequiredMode.REQUIRED, example = "31319")
    @NotEmpty(message = "客户账号不能为空")
    @ExcelProperty("客户账号")
    private String customerAccount;

    @Schema(description = "日期")
    @ExcelProperty("日期")
    private LocalDate operDate;

    @Schema(description = "图号")
    @ExcelProperty("图号")
    private String drawingNumber;

    @Schema(description = "品名", example = "张三")
    @ExcelProperty("品名")
    private String productName;

    @Schema(description = "入库数量", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "入库数量不能为空")
    @ExcelProperty("入库数量")
    private Integer inAmount;

    @Schema(description = "出库数量", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "出库数量不能为空")
    @ExcelProperty("出库数量")
    private Integer outAmount;


}
